<?php
class readconf {
    private $_confarray=array();
    function __construct($filepath) {
        $array = file(XXF_ROOT."conf\\".$filepath,FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
        $array2=array();
        foreach ($array as $row){
            if(substr($row,0,1)!="#"&&stripos($row,"=")){
                $array3=explode("=",$row);
                $array2[$array3[0]]=$array3[1];
            }
        }
        $this->_confarray=$array2;
    }
    
    function getarray() {
        return $this->_confarray;
    }
    function gy($k){
        return $this->_confarray[$k];
    }
}